home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-20 | 2.0 KB | 88 lines | [TEXT/MPS ] |
- ;------------------------------------------------------------------------------
- ;
- ; FILENAME
- ; OldApp.a
- ;
- ; DESCRIPTION
- ; Contains the code necessary to dispatch from a routine in one code
- ; module to a code segment in another module or within the same module
- ;
- ; COPYRIGHT
- ; Copyright © Apple Computer, Inc. 1992-1994
- ; All rights reserved.
- ;
- ; MODIFICATION HISTORY
- ;
- ; 07/24/92 Tom Dowdy New Today
- ; 12/20/93 dmh Sync'd with the shipping 1.0b3 GX driver.
- ; 12/22/93 dmh Added custom dialog code.
- ; 12/09/94 dmh Corrected old dialogs' global data usage.
- ; Added assembly routines to store/access
- ; global data handle.
- ;
- ;--------------------------------------------------------------------------------
-
- CASE OBJ
- STRING ASIS
-
- SD_JumpTable PROC EXPORT
- DC.L 0
-
- ; Compatibility messages
-
- IMPORT SD_ConvertPrintRecordTo
- JMP SD_ConvertPrintRecordTo
-
- IMPORT SD_ConvertPrintRecordFrom
- JMP SD_ConvertPrintRecordFrom
-
- IMPORT SD_PrintRecordToJob
- JMP SD_PrintRecordToJob
-
- IMPORT SD_PrValidate
- JMP SD_PrValidate
-
- IMPORT SD_PrJobInit
- JMP SD_PrJobInit
-
- IMPORT SD_PrStlInit
- JMP SD_PrStlInit
-
- IMPORT SD_PrDlgMain
- JMP SD_PrDlgMain
-
-
- ; GlobalDataHdl is storage for a handle to our old application dialogs'
- ; global data. We save and retrieve this value using the routines below.
- ;
-
- GlobalDataHdl DC.L 0
-
- EXPORT SetDialogGlobals
- EXPORT GetDialogGlobals
-
-
- ; SetDialogGlobals saves the passed parameter in our global data storage
- ; (above). We call this routine from CreateAndStoreGlobals in
- ; OldApp.c.
- ;
-
- SetDialogGlobals LINK A6,#0
- LEA GlobalDataHdl,A0
- MOVE.L 8(A6),(A0)
- UNLK A6
- RTS
-
-
- ; GetDialogGlobals retrieves the handle stored in our global data
- ; storage (above). We call this routine from several routines in
- ; OldApp.c.
- ;
-
- GetDialogGlobals LEA GlobalDataHdl,A0
- MOVE.L (A0),D0
- RTS
-
- ENDPROC
- END
-